package com.chen.dao;

import com.chen.pojo.Blog;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlogDao {

    Blog getBlog(Long id);

    List<Blog> listBlog();

    Blog getAndConvert(Long id);

    int saveBlog(Blog blog);

    int updateBlog(Long id, Blog blog);

    int deleteBlog(Long id);

}
